<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      libusb-1.0.23
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;9.&nbsp;General Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="libunistring.html" title=
          "libunistring-0.9.10">Prev</a>
          <p>
            libunistring-0.9.10
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libuv.html" title="libuv-1.34.2">Next</a>
          <p>
            libuv-1.34.2
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genlib.html" title=
          "Chapter&nbsp;9.&nbsp;General Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="libusb" name="libusb"></a>libusb-1.0.23
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to libusb
        </h2>
        <p>
          The <span class="application">libusb</span> package contains a
          library used by some applications for USB device access.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://github.com//libusb/libusb/releases/download/v1.0.23/libusb-1.0.23.tar.bz2">
                https://github.com//libusb/libusb/releases/download/v1.0.23/libusb-1.0.23.tar.bz2</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 1e29700f6a134766d32b36b8d1d61a95
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 592 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 6.4 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          libusb Dependencies
        </h3>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="doxygen.html" title=
          "Doxygen-1.8.17">Doxygen-1.8.17</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/libusb">http://wiki.linuxfromscratch.org/blfs/wiki/libusb</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of libusb
        </h2>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            This package does not support parallel build.
          </p>
        </div>
        <p>
          Install <span class="application">libusb</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">sed -i "s/^PROJECT_LOGO/#&amp;/" doc/doxygen.cfg.in &amp;&amp;

./configure --prefix=/usr --disable-static &amp;&amp;
make -j1</kbd>
</pre>
        <p>
          If <span class="application">Doxygen</span> is installed and you
          wish to build the API documentation, issue the following command:
        </p>
        <pre class="userinput">
<kbd class="command">make -C doc docs</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
        <p>
          If you built the API documentation, install it using the following
          commands as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class=
"command">install -v -d -m755 /usr/share/doc/libusb-1.0.23/apidocs &amp;&amp;
install -v -m644    doc/html/* \
                    /usr/share/doc/libusb-1.0.23/apidocs</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>sed -i ...</strong></span>: This sed
          prevents a warning when building the documentation.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring Libusb
        </h2>
        <p>
          <a id="libusb-kernel" name="libusb-kernel"></a> To access raw USB
          devices (those not treated as a disk by the mass-storage driver),
          appropriate support must be available in the kernel. Check your
          kernel configuration:
        </p>
        <pre class="screen">
<code class="literal">Device Drivers ---&gt;
  [*] USB support ---&gt;                   [CONFIG_USB_SUPPORT]
    &lt;*/M&gt; Support for Host-side USB      [CONFIG_USB]
    (Select any USB hardware device drivers you may need on the same page)</code>
</pre>
        <p>
          For more details on setting up USB devices, see <a class="xref"
          href="../postlfs/devices.html#usb-device-issues" title=
          "USB Device Issues">the section called &ldquo;USB Device
          Issues&rdquo;</a>.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libusb-1.0.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/libusb-1.0 and
              /usr/share/doc/libusb-1.0.23</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="libusb-lib" name="libusb-lib"></a><span class=
                    "term"><code class="filename">libusb-1.0.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains API functions used for accessing USB hardware.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 18:46:23 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="libunistring.html" title=
          "libunistring-0.9.10">Prev</a>
          <p>
            libunistring-0.9.10
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libuv.html" title="libuv-1.34.2">Next</a>
          <p>
            libuv-1.34.2
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genlib.html" title=
          "Chapter&nbsp;9.&nbsp;General Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
